<template>
    <div>
        <el-dialog
            :model-value="true"
            :title="title"
            :width="width"
            :destroy-on-close="true"
            @closed="closed"
        >
            {{dataStr}}
        </el-dialog>
    </div>
</template>

<script>
export default {
    data: ()=>{
        return {
            dataStr: ""
        }
    },
    props:["width","title","data"],
    created(){
        this.dataStr = this.data.msg || "";
    },
    methods: {
        closed(){
            this.$emit("closed");
            document.body.removeChild(document.getElementById("dialogmask"))
        }
    }
}
</script>

<style>

</style>